Skip to content

Use type alias for UnsafeCell and AtomicBool#88

Open
elBoberido wants to merge 1 commit intodtolnay:masterfrom
ekxide:use-type-alias-for-unsafecell-and-atomic-bool
Open

Use type alias for UnsafeCell and AtomicBool#88
elBoberido wants to merge 1 commit intodtolnay:masterfrom
ekxide:use-type-alias-for-unsafecell-and-atomic-bool

Conversation

@elBoberido
Copy link
Copy Markdown

Due to loom, we disallow the direct usage of UnsafeCell and Atomic* in our code and require to use a type alias which switches the types at a central location.

Since the __submit macro contains these two types, clippy warns when we use the inventory crate to collect all of our test cases for a custom test harness.

The PR introduces type aliases for UnsafeCell and AtomicBool. This keeps clippy happy and does not generate warnings in the user code.

@elBoberido elBoberido force-pushed the use-type-alias-for-unsafecell-and-atomic-bool branch from ed51c9e to 5177486 Compare March 27, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant